LoadModule ssl_module        <%=configuration[:modules_path]%>/mod_ssl.so
LoadModule proxy_module      <%=configuration[:modules_path]%>/mod_proxy.so
LoadModule proxy_http_module <%=configuration[:modules_path]%>/mod_proxy_http.so
LoadModule headers_module    <%=configuration[:modules_path]%>/mod_headers.so
<% if configuration[:load_log_module] %>
LoadModule log_config_module <%=configuration[:modules_path]%>/mod_log_config.so
<% end %>
LoadModule mime_module       <%=configuration[:modules_path]%>/mod_mime.so
LoadModule dir_module        <%=configuration[:modules_path]%>/mod_dir.so
LoadModule alias_module      <%=configuration[:modules_path]%>/mod_alias.so

ErrorLog "logs/error.log"
LogLevel Debug

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"" combined
CustomLog "logs/access.log" combined

PidFile logs/httpd.pid
LockFile logs/run.lock

TypesConfig conf/mime.types 

Listen <%= configuration['web_port'] %>

ProxyRequests off

ProxyPass /api <%= configuration['api_endpoint'] %>/api

SSLProxyEngine On

DocumentRoot "public"

DirectoryIndex index.html
